package io.renren.sf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * 
 * @author txw_cyl
 * @email sunlightcs@gmail.com
 * @date 2023-06-05 18:37:09
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("hz_recommend_stele_calligraphy_collection")
public class RecommendSteleCalligraphyCollectionEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 推荐碑帖集合id
	 */
	@TableId(type = IdType.ID_WORKER)
	@ApiModelProperty(value = "推荐碑帖集合id", dataType = "Long")
	private Long id;
	/**
	 * 推荐碑帖集合名称
	 */
	@ApiModelProperty(value = "推荐碑帖集合名称", dataType = "String")
	private String steleCalligraphyConame;
	/**
	 * 推荐种类
	 */
	@ApiModelProperty(value = "推荐种类", dataType = "Integer")
	private Integer rtype;
	/**
	 * 顺序
	 */
	@ApiModelProperty(value = "顺序", dataType = "Integer")
	private Integer rorder;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间", dataType = "Date")
	private Date createtime;

	/**
	 *	推荐碑帖list
	 */
	@TableField(exist = false)
	@ApiModelProperty(value = "推荐碑帖list", dataType = "List<RecommendSteleCalligraphyEntity>")
	List<RecommendSteleCalligraphyEntity> recommendSteleCalligraphyList;

	public RecommendSteleCalligraphyCollectionEntity(String steleCalligraphyConame, Integer rtype, Integer rorder, Date createtime) {
		this.steleCalligraphyConame = steleCalligraphyConame;
		this.rtype = rtype;
		this.rorder = rorder;
		this.createtime = createtime;
	}

	public RecommendSteleCalligraphyCollectionEntity(Long id, String steleCalligraphyConame, Integer rtype, Integer rorder) {
		this.id = id;
		this.steleCalligraphyConame = steleCalligraphyConame;
		this.rtype = rtype;
		this.rorder = rorder;
	}
}
